<!DOCTYPE html>
<html lang="zh" xmlns:th="http://www.thymeleaf.org">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
</head>
<body>

<h1>登录</h1>

<form th:action="@{/login}">
    <p>账户：<input th:type="text" name="user"/></p>
    <p>密码：<input th:type="text" name="pwd"/></p>
    <p th:if="${msg}" th:text="${msg}"></p>
    <p><input th:type="submit"/></p>
</form>
</body>
</html>